﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Product.aspx.cs" Inherits="PlugNT.Cms.Web.Home.Product" %>

<%@ Register Src="Control/Head.ascx" TagName="Head" TagPrefix="uc1" %>
<%@ Register Src="Control/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register Src="Control/LeftContent.ascx" TagName="LeftContent" TagPrefix="uc5" %>
<%@ Register Src="Control/Style.ascx" TagName="Style" TagPrefix="uc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
    <meta http-equiv="Content-Type " content="text/html;   charset=utf-8 " />
    <title>
       <%=enterprise.Name%>
        - 供应产品</title>
    <uc4:Style ID="Style1" runat="server" />
</head>
<body>
    <uc1:Head ID="Head3" runat="server" />
    <div class="base">
        <div class="container">
            <ul class="navigation mb10">
                <li class="first"><strong>您现在的位置：</strong><%=enterprise.Name%></li>
                <li>供应产品</li>
            </ul>
            <div class="rows clearfix">
                <uc5:LeftContent ID="LeftContent" runat="server" />
                <div class="main cols">
                    <div class="mod mb10">
                        <div class="hd">
                            <h3>产品橱窗</h3>
                        </div>
                        <div class="bd">
                            <ul class="ul-list clearfix">
                                <% int page = 1;
                                   if (Request.QueryString["page"] != null)
                                   {
                                       page = Convert.ToInt32(Request.QueryString["page"]);
                                   }
                                %>
                                <%int count = 1; %>

                                <% foreach (var model in getProduct())
                                   { %>
                                <% if (count % 4 == 1)
                                   {%>
                                <li class="first">
                                    <% }
                                   else
                                   {%>
                                    <li>
                                        <%}%>
                                        <div class="pic">
                                            <a title="<%=model.Name%>" href="/Home/Show.aspx?User=<%=user.Id%>&Id=<%=model.Id%>"
                                                target="_blank">
                                                <img alt="<%=model.Name%>" src="/CreateMiniImage.ashx?path=<%=model.Images%>&h=150&w=150&t=cut" width="150" /></a>
                                        </div>
                                        <div class="name">
                                            <a title="<%=model.Name%>" href="/Home/Show.aspx?User=<%=user.Id%>&Id=<%=model.Id%>"
                                                target="_blank"><%=model.Name%></a>  <%=model.Price%>
                                        </div>
                                    </li>
                                    <%count++; %>
                                    <%}%>
                            </ul>
                            <ul class="ul-news">
                            </ul>
                            <div class="pager">
                                <%  
                                    Response.Write(PlugNT.Cms.Page.DataHelper.GetPagination((int)TotalCount, PageSize, page, "Product.aspx", "User=" + Request.QueryString["User"] + "&page", "", false, false));%>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <uc2:Foot ID="Foot1" runat="server" />
</body>
</html>
